package com.example.practical_training_projects.controller;

import com.example.practical_training_projects.entity.appointment;
import com.example.practical_training_projects.entity.articles;
import com.example.practical_training_projects.entity.articles1;
import com.example.practical_training_projects.service.articles1Service;
import com.example.practical_training_projects.service.articlesService;
import com.example.practical_training_projects.util.FileUtil;
import com.example.practical_training_projects.vo.voarticlesandclass;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

@CrossOrigin
@RestController
@RequestMapping("articles1")
public class articles1Controller {
    @Autowired
    private articles1Service service;
    /**
     * 返回所有文章信息: http://localhost:8080/articles1/list  get请求
     * @return
     */
    @GetMapping("list")
    public List<articles1> getall(){
        return service.getall();
    }

}
